; * lisp/subr.el (setq-local): Doc fix (bug#78644).
authorEli Zaretskii <eliz@gnu.org>
Sat, 31 May 2025 07:05:06 +0000 (10:05 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 31 May 2025 07:05:06 +0000 (10:05 +0300)
lisp/cus-edit.el
lisp/custom.el
lisp/subr.el

index 2ecae541fed9a75c59fb7e9984fb30789c614139..510c0b997021e26f5c220d278dfdfdbecaf36b07 100644 (file)
   (error nil))
 
 (condition-case nil
-    (require 'cus-start)
+    (unless (featurep 'cus-start)
+      (require 'cus-start))
   (error nil))
 
 (put 'custom-define-hook 'custom-type 'hook)
index a0dc1945bedce19f36a1fd82b49d4fd3d5e9469b..e5ceda87f619a84745623bd87ffa0b141e570852 100644 (file)
@@ -699,7 +699,8 @@ The result is that the change is treated as having been made through Custom."
       (ignore-errors
         (require 'cus-load))
       (ignore-errors
-        (require 'cus-start))
+        (unless (featurep 'cus-start)
+          (require 'cus-start)))
       (dolist (load (get symbol 'custom-loads))
         (cond ((symbolp load) (ignore-errors (require load)))
              ;; This is subsumed by the test below, but it's much faster.
index 99981848db4735f6ac4a63256f6dae1c61dd947c..50ebc598e80c60e5d0fb910bac2d08e7a149ddc6 100644 (file)
@@ -161,11 +161,12 @@ of previous VARs.
     `(progn . ,(nreverse exps))))
 
 (defmacro setq-local (&rest pairs)
-  "Make each VARIABLE buffer-local and assign to it the corresponding VALUE.
+  "Make each VARIABLE local to current buffer and set it to corresponding VALUE.
 
 The arguments are variable/value pairs.  For each VARIABLE in a pair,
-make VARIABLE buffer-local and assign to it the corresponding VALUE
-of the pair.  The VARIABLEs are literal symbols and should not be quoted.
+make VARIABLE buffer-local in the current buffer and assign to it the
+corresponding VALUE of the pair.  The VARIABLEs are literal symbols
+and should not be quoted.
 
 The VALUE of the Nth pair is not computed until after the VARIABLE
 of the (N-1)th pair is set; thus, each VALUE can use the new VALUEs